package ar.edu.utn.frsf.proyectofinal.sistemadecontrolmodbus.presentation.controller.util;

import org.icefaces.application.PortableRenderer;

import ar.edu.utn.frsf.proyectofinal.sistemadecontrolmodbus.devicecontroller.DeviceChangeListener;

import static ar.edu.utn.frsf.proyectofinal.sistemadecontrolmodbus.presentation.controller.util.PresentationUtil.DEVICE_GROUP;;

public class DeviceChangeListenerImp implements DeviceChangeListener {


	private int devnbr;
	private PortableRenderer push;
	
	@Override
	public void changeState() {
		push.render(devnbr+DEVICE_GROUP);

	}

	/**
	 * @return the devnbr
	 */
	public int getDeviceNumber() {
		return devnbr;
	}

	/**
	 * @param devnbr the devnbr to set
	 */
	public void setDeviceNumber(int devnbr) {
		this.devnbr = devnbr;
	}

	/**
	 * @return the push
	 */
	public PortableRenderer getPush() {
		return push;
	}

	/**
	 * @param push the push to set
	 */
	public void setPush(PortableRenderer push) {
		this.push = push;
	}

}
